<?php $this->placeholder('toolBar')->captureStart();?>
<a style="color:grey" class="button" href="#" onclick="$('#newsAdd').submit()">Сохранить</a>
<input class="button" type="submit" onclick="goto(url('news/edit'))" name="save_view" value="Отмена"/>
<input class="button" style="float: right;" type="submit" onclick="$('.glowBox').fadeIn();" name="save_view" value="Мета"/>
<?php $this->placeholder('toolBar')->captureEnd() ?>


<style>
.seoButtons
{
	height: 20px;padding: 3px;width: 95%;
}
</style>
<div class="glowBox" style="width: 200px;display: none;position: absolute;right: 15px;">
    <p>Title:<br />        <input class="invivo seoButtons"   name="wsx" value="wsx cderf" type="text" /> </p>
    <p>Keywords:<br />     <input class="invivo seoButtons"   name="wsx" value="wsx cderf" type="text" /> </p>
    <p>Descrioption:<br /> <input class="invivo seoButtons"   name="wsx" value="wsx cderf" type="text" /> </p>
    <p><input type="button" class="button" value="Принять" onclick="$('.glowBox').fadeOut();" /></p>
</div>


<script type="text/javascript" src="<?php echo $this->baseUrl("stuff/editor/ckeditor/ckeditor.js");?>"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl("stuff/editor/fck.js");?>"></script>

<script>
var activeDate = new Date('01/08/2010');
$(document).ready(function()
{
	$("#date").datepicker({showStatus:true,yearRange: '2010:2015',defaultDate: activeDate,firstDay: 0,inline: true,showOtherMonths: true});
});
</script> 


<form id="newsAdd"  action="" method="post" enctype="multipart/form-data">
<table>
<tr>
<td>Заголовок</td>
<td><input type="text" name="title" value="" style="width: 100%"/></td>
</tr>

<tr>
<td>Коротко</td>
<td><textarea rows="3" cols="50" name="teaser" style="width: 99%"></textarea> </td>
</tr>


<tr>
<td>Текст</td>
<td><textarea rows="20" cols="50" name="text"></textarea> </td>
</tr>


<tr>
<td>Дата</td>
<td><input id='date' type="text" name="date" value=""/></td>
</tr>

<tr>
<td>Изображение</td>
<td><input id='photo' type="file" name="photo" value=""/></td>
</tr>

<tr>
<td>Отображать на главной</td>
<td><input  type="checkbox"  name="PressRelise"   value="1"/></td>
</tr>

<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
  

</table>
</form>
